package com.dongjiantong.user.serviceImpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongjiantong.mybatis.ServiceMybatis;
import com.dongjiantong.user.mapper.OrgFramsUserMapper;
import com.dongjiantong.user.model.OrgFramsUser;
import com.dongjiantong.user.service.OrgFramUserService;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ThinkPad on 2017/12/12.
 */
@Slf4j
@Service(version = "1.0.0")
public class OrgFarmsUSerServiceImpl extends ServiceMybatis<OrgFramsUser> implements OrgFramUserService{
    @Resource
    private OrgFramsUserMapper orgFramsUserMapper;

    @Override
    public List<OrgFramsUser> findFarmsByUserId(Long id) {
        return orgFramsUserMapper.findFarmsByUserId(id);
    }
}
